/*
** threads_entry.c for dayday in /home/dd/projs/dayday
** 
** Made by dd
** Login   <alletr_p@epitech.net>
** 
** Started on  Wed Jul 22 12:01:29 2009 dd
** Last update Wed Jul 22 12:46:03 2009 dd
*/

#include <assert.h>

#include "client.h"

int		threads_entry(void *data)
{
  t_all		*all;
  t_threads	*thread;

  assert(data);
  thread = (t_threads *) data;
  all = (t_all *) thread->param;
  while (all->game.state == ON)
    thread->f(all);
  return (SUCCESS);
}
